/*
 * @Author: lusx 
 * @Date: 2020-05-22 14:28:02 
 * @Last Modified by: lusx
 * @Last Modified time: 2020-05-26 14:43:58
 */
import React from 'react';
import { Echarts } from 'weaver-mobile';
import { toJS } from 'mobx';
export default class Chart extends React.Component {
    render(){
        const { datas, actionTab = 0 } = this.props;
        return (
            <div style={{ height: 270 }}>
                <Echarts
                    key={actionTab}
                    option={toJS(datas[actionTab].option)}
                    useDefault={false}
                />
            </div>
        )
    }
}
